﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BasicDataManage.aspx.cs" Inherits="Shop.WebApp.SysBase.BasicDataManage" %>
<%@ Register Assembly="Alpha.WebCustomControl" Namespace="DoNet.Common.WebCustomControl"   TagPrefix="alpha" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
        <tr>
            <td colspan="2">
                <asp:LinkButton ID="lkbCreate" runat="server" onclick="lkbCreate_Click" CausesValidation="false">新增基础数据</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table runat="server" id="OperateArea">
                    <tr>
                        <td>类型</td>
                        <td><alpha:WebDropDownList runat="server" ID="ddlTypeCode" ></alpha:WebDropDownList></td>
                        <td>代码</td>
                        <td>
                            <alpha:WebTextBox ID="Code" runat="server" AllowEmpty="False" MaxLength="15" 
                                ValidType="String"><Value></Value>
                            </alpha:WebTextBox>
                        </td>
                        <td>名称</td>
                        <td>
                            <alpha:WebTextBox ID="Name" runat="server" AllowEmpty="False" MaxLength="20"><Value>
                            </Value>
                            </alpha:WebTextBox>
                        </td>
                        <td>
                            <alpha:WebButton ID="btnSave" runat="server"  Text="新增" 
                                onclick="btnSave_Click"/>
                            <alpha:WebButton ID="btnUpadate" runat="server" Text="更新" 
                                onclick="btnUpadate_Click"  Visible="false"/>
                        </td>

                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table>
                     <tr>
                        <td>
                            <asp:TreeView ID="tvBasicData" runat="server" 
                                onselectednodechanged="tvBasicData_SelectedNodeChanged" >
                            </asp:TreeView>
                        </td>
                     </tr>
                </table>
            </td>
            <td  valign="top">
                <table>
                    <tr>
                        <td>
                         类型名称:<asp:Label ID="lblType" runat="server"></asp:Label>   
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView runat="server" ID="gvBasicData" DataKeyNames="Code" 
                                AutoGenerateColumns="False" 
                                EnableViewState="true"
                                onselectedindexchanging="gvBasicData_SelectedIndexChanging">
                                <Columns>
                                    <asp:BoundField DataField="Code" HeaderText="代码" />
                                    <asp:BoundField DataField="Name" HeaderText="名称" />
                                    <asp:CommandField HeaderText="更新" SelectText="√" ShowSelectButton="True" ItemStyle-HorizontalAlign="Center"/>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
